//
//  LBDiscountCell.m
//  loveBeen
//
//  Created by 郭小双 on 16/11/22.
//  Copyright © 2016年 loveBeen. All rights reserved.
//

#import "LBDiscountCell.h"

@implementation LBDiscountCell
- (void)setModel:(LBCouponModel *)model{
    _model = model;
    
    _lb_head.text = model.top;
    _lb_detail.text = model.detail;
    _lb_time.text = [NSString stringWithFormat:@"有效期：%@",model.time];
    if(model.isUsing){
        _priceView.image = [UIImage imageNamed:@"v2_coupon_gray"];
        _cirleImageView.image = [UIImage imageNamed:@"verify_code_button_highlighted-1"];
        _lb_use.hidden = NO;
        _lb_detail.textColor = [UIColor grayColor];
        _lb_head.textColor = [UIColor grayColor];
        _lb_time.textColor = [UIColor grayColor];
        
        
    }else{
        _lb_use.hidden = YES;
    }
    
    _lb_price.text = [NSString stringWithFormat:@"$%d",model.price.intValue];
    
}




- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
